using System;
using System.Collections.Generic;
using System.Text;

namespace Camalon.Drawing.Samples.CSharp
{
    public partial class LineSample1:Camalon.Drawing.ShapeContainer
    {
        private Camalon.Drawing.Shapes.Line line1;
        private Camalon.Drawing.Shapes.Ellipse ellipse1;
        private Camalon.Drawing.LinearGradientFill linearGradientFill1;
        private Camalon.Drawing.PathGradientFill pathGradientFill1;
        private Camalon.Drawing.SolidFill solidFill1;
        private Camalon.Drawing.ShapePen shapePen1;

        public LineSample1()
        {
            InitializeComponent();
        }
    
        private void InitializeComponent()
        {
            this.line1 = new Camalon.Drawing.Shapes.Line();
            this.linearGradientFill1 = new Camalon.Drawing.LinearGradientFill();
            this.shapePen1 = new Camalon.Drawing.ShapePen();
            this.ellipse1 = new Camalon.Drawing.Shapes.Ellipse();
            this.pathGradientFill1 = new Camalon.Drawing.PathGradientFill();
            this.solidFill1 = new Camalon.Drawing.SolidFill();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // line1
            // 
            this.line1.Closed = true;
            this.line1.Fill = this.linearGradientFill1;
            this.line1.Pen = this.shapePen1;
            this.line1.Points = new Camalon.Drawing.AnchorPoint[] {
        new Camalon.Drawing.AnchorPoint(40, 40),
        new Camalon.Drawing.AnchorPoint(40, 290),
        new Camalon.Drawing.AnchorPoint(90, 290),
        new Camalon.Drawing.AnchorPoint(90, 190),
        new Camalon.Drawing.AnchorPoint(120, 190),
        new Camalon.Drawing.AnchorPoint(150, 250),
        new Camalon.Drawing.AnchorPoint(180, 190),
        new Camalon.Drawing.AnchorPoint(210, 190),
        new Camalon.Drawing.AnchorPoint(210, 290),
        new Camalon.Drawing.AnchorPoint(260, 290),
        new Camalon.Drawing.AnchorPoint(260, 40),
        new Camalon.Drawing.AnchorPoint(210, 40),
        new Camalon.Drawing.AnchorPoint(210, 140),
        new Camalon.Drawing.AnchorPoint(90, 140),
        new Camalon.Drawing.AnchorPoint(90, 40)};
            this.line1.Position = new System.Drawing.Point(40, 40);
            this.line1.Size = new System.Drawing.Size(200, 100);
            // 
            // linearGradientFill1
            // 
            this.linearGradientFill1.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.CadetBlue),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Orchid, 0.5F),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Gray, 1F)};
            // 
            // shapePen1
            // 
            this.shapePen1.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(150)))), ((int)(((byte)(223))))));
            this.shapePen1.LineJoin = System.Drawing.Drawing2D.LineJoin.Round;
            this.shapePen1.Width = 5F;
            // 
            // ellipse1
            // 
            this.ellipse1.Fill = this.pathGradientFill1;
            this.ellipse1.Pen = this.shapePen1;
            this.ellipse1.Position = new System.Drawing.Point(110, 40);
            this.ellipse1.Size = new System.Drawing.Size(80, 80);
            // 
            // pathGradientFill1
            // 
            this.pathGradientFill1.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.RosyBrown),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.NavajoWhite, 0.5F),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.FromArgb(((int)(((byte)(122)))), ((int)(((byte)(150)))), ((int)(((byte)(223))))), 1F)};
            // 
            // LineSample1
            // 
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.line1,
            this.ellipse1});
            this.Size = new System.Drawing.Size(320, 350);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }
    }
}
